#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time          : 2024/4/26 14:45
# File          : apollo_demo.py
# @Author       : MingTai
# @Department   : automation_qa
from app.utils.pyapollo import ApolloClient

url = 'you_apollo_url'
app_id = 'you_app_id'


# client = ApolloClient(app_id='autopilot-automation-test-ceres', config_server_url=url)
# client.start()


def demo_apollo():
    client = ApolloClient(app_id=app_id, config_server_url=url)
    print(client.get_value('ceres_key', '2333'))


if __name__ == '__main__':
    demo_apollo()
